/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Programas_En_Clase;

/**
 *
 * @author gurrola
 */
public class Conversion {

       public static void main(String[] args) {

          Integer x = Integer.parseInt("3ff",16);
            System.out.println("long = "+x);

         Double d = new Double(x.doubleValue());
             System.out.println("double = "+d);

         Integer x2 = d.intValue();
              System.out.println("long = "+x2);

          String cad=x2.toBinaryString(x);
              System.out.println("cadena = "+cad);

          Integer x3= Integer.parseInt(cad,2);
               System.out.println("long = "+x3);

          String cad2= Integer.toString(x);
               System.out.println("cadena2 = "+x);

          Integer x4= Integer.parseInt(cad,8);
              System.out.println("long = "+x4.toString()); ;




       
//        System.out.println("long ="+x2);
//        System.out.println("long ="+x);
//        System.out.println("long ="+x);
//        System.out.println("long ="+x);

    }

}
